<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<title></title> 
<%@include file="../../commons/_meta.jsp"%>
<base href="${ctx}">  
<meta charset="utf-8"> 
<link rel="stylesheet" href="${ctx}assets/plugins/pure/pure-min.css" media="all" />
<script type="text/javascript">
debugs("${ctx} --- role-view.jsp"); 
jQuery(document).ready(function() { 
	$("#back_btn").click(function() {
		//$(form).ajaxSubmit();
		var index = parent.layer.getFrameIndex(window.name);
		debugs("parentpage listForm");
		parent.listFormPageSearch(1);
		debugs("parentpage listForm Done");
		parent.layer.close(index);
	});
}); 
</script> 
</head>
<body >
<form class="pure-form pure-form-aligned" id="forms" method="post" action="${ctx}admin/adminrole/update">
    <fieldset>
        <fieldset> 
        <div class="pure-control-group">
            <label for="roleCode"><fmt:message key='Character.code'/>:<span class="error">*</span></label> 
            <input id="roleCode" name="roleCode" type="text"  placeholder="" value="${obj.roleCode }" readonly="readonly"/>
        </div> 
        <div class="pure-control-group">
            <label for="roleName"><fmt:message key='Character.name'/>:</label> 
            <input id="roleName" name="roleName" type="text"  placeholder="" value="${obj.roleName }"/>
        </div>
        <div class="pure-control-group">
	        <label for="status"><fmt:message key='status'/></label>
	        <select id="status" name="status" style="text-align: center;"> 
				<option value="0" <c:if test="${obj.status == 0 }">selected="selected"</c:if> ><fmt:message key='disable'/></option>
				<option value="1" <c:if test="${obj.status == 1 }">selected="selected"</c:if> ><fmt:message key='available'/></option>
				<option value="-1" <c:if test="${obj.status == -1 }">selected="selected"</c:if> ><fmt:message key='Deletes'/></option> 
			</select> 
        </div>
    </fieldset>
</form>

	<!-- 页尾，提示消息 -->
	<jsp:include page="../../commons/_foot_message.jsp"></jsp:include> 
	
	<script>
		jQuery(document).ready(function() {
			var webStatust = $("#webStatus").html();
			if(empty(webStatust)){
				return ;
			}else if(webStatust == 200) {
				parent.listFormPageSearch(1);
			}
		});
	</script> 
</body>
</html>